package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DancePetBossBaseInfo boss基础信息表
type DancePetBossBaseInfo struct {
	Id                int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	BossId            int64          `json:"bossId" gorm:"column:boss_id;type:bigint;default:0;not null;comment:bossID"`
	Name              string         `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment:boss名"`
	Hp                int64          `json:"hp" gorm:"column:hp;type:bigint;default:0;not null;comment:生命值"`
	Atk               int64          `json:"atk" gorm:"column:atk;type:bigint;default:0;not null;comment:攻击力"`
	Def               int64          `json:"def" gorm:"column:def;type:bigint;default:0;not null;comment:防御"`
	AtkSpd            int64          `json:"atkSpd" gorm:"column:atk_spd;type:bigint;default:0;not null;comment:攻速"`
	CriticalHit       int64          `json:"criticalHit" gorm:"column:critical_hit;type:bigint;default:0;not null;comment:暴击"`
	CriticalHitDef    int64          `json:"criticalHitDef" gorm:"column:critical_hit_def;type:bigint;default:0;not null;comment:抗暴"`
	CriticalHitDmg    int64          `json:"criticalHitDmg" gorm:"column:critical_hit_dmg;type:bigint;default:0;not null;comment:暴伤"`
	CriticalHitDmgDef int64          `json:"criticalHitDmgDef" gorm:"column:critical_hit_dmg_def;type:bigint;default:0;not null;comment:暴伤防御"`
	ActivitiesId      int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:宠物BOSS活动id"`
	CreatedId         int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	UpdateId          int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`   // 更新人id
	CreatedAt         time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt         time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt         gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
